package com.ruoyi.cart.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 cart
 * 
 * @author ruoyi
 * @date 2024-07-05
 */
public class Cart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购买项目id */
    private Long itemId;

    /** 购物车id */
    @Excel(name = "购物车id")
    private Long cartId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 合并商品id */
    @Excel(name = "合并商品id")
    private Long productId;

    /** 规格名称 */
    @Excel(name = "规格名称")
    private String specName;

    /** 规格值 */
    @Excel(name = "规格值")
    private String specValue;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long productCnt;

    /** 单条项目总价 */
    @Excel(name = "单条项目总价")
    private BigDecimal itemUnit;

    /** 项目状态 */
    @Excel(name = "项目状态")
    private String itemStatus;

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setCartId(Long cartId) 
    {
        this.cartId = cartId;
    }

    public Long getCartId() 
    {
        return cartId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setSpecName(String specName) 
    {
        this.specName = specName;
    }

    public String getSpecName() 
    {
        return specName;
    }
    public void setSpecValue(String specValue) 
    {
        this.specValue = specValue;
    }

    public String getSpecValue() 
    {
        return specValue;
    }
    public void setProductCnt(Long productCnt) 
    {
        this.productCnt = productCnt;
    }

    public Long getProductCnt() 
    {
        return productCnt;
    }
    public void setItemUnit(BigDecimal itemUnit) 
    {
        this.itemUnit = itemUnit;
    }

    public BigDecimal getItemUnit() 
    {
        return itemUnit;
    }
    public void setItemStatus(String itemStatus) 
    {
        this.itemStatus = itemStatus;
    }

    public String getItemStatus() 
    {
        return itemStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("cartId", getCartId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("specName", getSpecName())
            .append("specValue", getSpecValue())
            .append("productCnt", getProductCnt())
            .append("itemUnit", getItemUnit())
            .append("itemStatus", getItemStatus())
            .toString();
    }
}
